package com.wyh.controller.gfive;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import com.wyh.domain.po.gfive.Organizations;
import com.wyh.service.gfive.OrganizationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 组织表 前端控制器
 * </p>
 *
 * @author 唐书亮
 * @since 2024-05-21
 */
@RestController
@RequestMapping("/organization")
@Api(tags = "管理看板查询")
public class OrganizationController {
    @Autowired
    OrganizationService organizationService;

    /**
     * 查询所有的组织
     */
    @GetMapping("/findOrganizations")
    @ApiOperation(value = "查询所有的组织")
    public List<Organizations> findOrganizations() {
        List<Organizations> organizations = organizationService.findOrganizations();
        return organizations;

    }
}
